const User_img = require('../../model/User_Img')
module.exports = async (req, res) => {
    const { id } = req.query
    if (!id) {
        res.sendResult(null,400,'请传递用户ID')
        return
    }
    const findall = await User_img.findAll({ where: { user_id:id } })
    res.sendResult({
        total:findall.length
    },200,'获取成功！')
    
}